<template>
  <div>
      <router-link to="/layout">page1</router-link>
      <router-link to="/layout/2">page2</router-link>
      <router-link to="/layout/3">page3</router-link>
      <p>嵌套路由--目的节省代码 页面切换过程中可以减少消耗，Top和Left这两个组件跳过更新</p>
      <Top></Top>
      <Left></Left>
      <!-- 这里放每个页面的center -->
      <router-view></router-view>
  </div>
</template>

<script>
import Top from './Top.vue'
import Left from './Left.vue'
export default {
    components: {
        Top,
        Left
    }
}
</script>

<style>

</style>